<?php
namespace app\admin\controller;
use think\Controller;
use Common\Controller\BaseController;
use think\Model;
use think\Request;
use think\Session;
use think\Loader;
class Dayin extends Controller
{
    public function index()
    {
        $id['id'] = input('id');
          $res=db('user')->where($id)->find();
        /*$content=$res['oddnumbers'];
        Loader::import('BCode.BCGFontFile',EXTEND_PATH);
        Loader::import('BCode.BCGDrawing',EXTEND_PATH);
        Loader::import('BCode.BCGcode128',EXTEND_PATH,'.barcode.php');
        $color_black = new \BCGColor(0, 0, 0);
        $color_white = new \BCGColor(255, 255, 255);
        $drawException = null;
        try
        {
            $code = new \BCGcode128();
            $code->setScale(2);
            $code->setThickness(30);
            $code->setForegroundColor($color_black);
            $code->setBackgroundColor($color_white);
            $code->parse($content);
        }
        catch(\Exception $exception)
        {
            $drawException = $exception;
        }
        $drawing = new \BCGDrawing('', $color_white);
        if($drawException) {
            $drawing->drawException($drawException);
        }else{
            $drawing->setBarcode($code);
            $drawing->draw();
        }
        header('Content-Type:image/png');

        $drawing->finish(\BCGDrawing::IMG_FORMAT_PNG);
        //dump($drawing);exit;*/
        $this->assign('list',$res);
        return $this->fetch();
    }
}